package com.kamistoat.common.constant;

import java.util.concurrent.TimeUnit;

public class SecKillConstant {
    public static final String SEC_SESSION_PREFIX = "seckill:sessions:";   // 缓存秒杀场次信息的键 前缀
    public static final String SEC_PRODUCT_PREFIX = "seckill:skus:";   // 缓存秒杀商品信息的键 前缀
    public static final String SEC_KILL_SEMAPHORE = "seckill:stock:" ;  // 缓存秒杀商品信息的虚拟库存信号量键 前缀
    public static final String SEC_PRO_USER = "seckill:user:";  // 缓存 商品Id_用户Id键 前缀
//    public static final Long ORDER_TOKEN_EXPIRE = 5L;   //  订单防重令牌过期时间为5分钟
//    public static final TimeUnit ORDER_TOKEN_EXPIRE_UNIT = TimeUnit.MINUTES;
}
